package com.an.blog.service;

import com.an.blog.admin.domain.vo.BlogTalkVo;
import com.an.blog.admin.domain.bo.BlogTalkBo;
import com.an.blog.web.domain.vo.BlogTalkWebVo;
import com.an.common.core.page.TableDataInfo;
import com.an.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 博客说说Service接口
 *
 * @author Ann
 * @date 2023-05-08
 */
public interface IBlogTalkService {

    /**
     * 查询博客说说
     */
    BlogTalkVo queryById(Long talkId);

    /**
     * 查询博客说说列表
     *
     * @param bo        业务对象
     * @param pageQuery 页面查询
     * @return {@link TableDataInfo }<{@link BlogTalkVo }>
     * @author: Ann
     * @createDate: 2023/05/10 13:50:34
     * @version: 1.0.0
     */
    TableDataInfo<BlogTalkVo> queryPageList(BlogTalkBo bo, PageQuery pageQuery);

    /**
     * 查询博客说说列表
     */
    List<BlogTalkVo> queryList(BlogTalkBo bo);

    /**
     * 新增博客说说
     */
    Boolean insertByBo(BlogTalkBo bo);

    /**
     * 修改博客说说
     */
    Boolean updateByBo(BlogTalkBo bo);

    /**
     * 校验并批量删除博客说说信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 更新文章状态
     *
     * @param bo 业务对象
     * @return int
     * @author: Ann
     * @createDate: 2023/05/10 17:11:01
     * @version: 1.0.0
     */
    int updateArticleStatus(BlogTalkBo bo);

    /**
     * 更新文章是顶级
     *
     * @param bo 业务对象
     * @return int
     * @author: Ann
     * @createDate: 2023/05/10 17:11:07
     * @version: 1.0.0
     */
    int updateArticleIsTop(BlogTalkBo bo);

    /**
     * 查询和网络列表
     *
     * @param pageQuery 页面查询
     * @return {@link TableDataInfo }<{@link BlogTalkWebVo }>
     * @author: Ann
     * @createDate: 2023/08/16 10:53:27
     * @version: 1.0.0
     */
    TableDataInfo<BlogTalkWebVo> queryTalkWebList(PageQuery pageQuery);
}
